package cn.cherish.controller;


import cn.cherish.domain.User;
import cn.cherish.feign.PayFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PayController {
    @Autowired
    private PayFeign payFeign;

    @GetMapping("/findById/{id}")
    public User getById(@PathVariable("id")Long id){
        User user = payFeign.getById(id);
        return user;
    }

}
